<template>
    <div class="config_btn">
        <span class="config_text">
            {{ text }}
            <img v-if="showSQ" class="arrow" src="../assets/images/icon_shouqi.png" alt="">
        </span>
    </div>
</template>
<script setup>
import { ref, watch } from 'vue';
const props = defineProps({
    text: {
        type: String,
        default: '模拟配置'
    },
    status: {
        type: Boolean,
        default: false
    }
})
const showSQ = ref(false);
watch(() => props.status, (newVal) => {
    showSQ.value = newVal;
}, {
    immediate: true
});
</script>
<style scoped lang="scss">
.config_btn {
    width: 238px;
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-image: url('../assets/images/icon_btn_bg.png');
    background-size: 100% 100%;
    padding-bottom: 14px;

    .config_text {
        font-family: YouSheBiaoTiHei;
        font-size: 28px;
        font-weight: normal;
        color: #FFFFFF;
        text-wrap: nowrap;
        display: flex;
        align-items: center;
    }

    .arrow {
        margin-left: 10px;
        width: 28px;
        height: 32px;
    }
}
</style>